package com.youbug.mall.pms.service;

import com.youbug.mall.pms.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品三级分类 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-05-07
 */
public interface ICategoryService extends IService<Category> {

    List<Category> listWithTree();

    boolean deleteById(Long id);

    boolean addCategory(Category category);

    void cleanCache(boolean delete);
}
